using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EntityAnimationEvent : MonoBehaviour
{
    private Entity entity;
    private Entity_Combat entityCombat;
    protected virtual void Awake()
    {
        entity = GetComponentInParent<Entity>();
        entityCombat = GetComponentInParent<Entity_Combat>();
    }
    private void AnimationEventTrigger() => entity.CurrentAnimatorTrigger();
    private void AttackEventTrigger() => entityCombat?.PerformAllAttack();
}
